package com.arpa.wms.mapper;

import com.arpa.ntocc.common.domain.vo.ShipmentVO;
import com.arpa.wms.domain.dto.WarehouseShipmentDTO;
import com.arpa.wms.domain.entity.WarehouseShipment;
import com.arpa.wms.domain.vo.WarehouseShipmentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-08-03
 */
public interface WarehouseShipmentMapper extends BaseMapper<WarehouseShipment> {

    /**
     * 查询列表
     * @param warehouseDTO
     * @return
     */
    List<WarehouseShipmentVO> queryList(WarehouseShipmentDTO warehouseDTO);

    /**
     * 查询合计,包含总数
     * @param warehouseDTO
     * @return
     */
    WarehouseShipmentVO queryListSum(WarehouseShipmentDTO warehouseDTO);

    /**
     * 查询仓库可关联货主数量
     * @param warehouseDTO
     * @return
     */
    ShipmentVO queryShipmentListSum(WarehouseShipmentDTO warehouseDTO);

    /**
     * 查询仓库可关联货主
     * @param warehouseDTO
     * @return
     */
    List<ShipmentVO> queryShipmentList(WarehouseShipmentDTO warehouseDTO);



    void insertDataBySql(@Param("sql") String sql);


    List<WarehouseShipmentVO> getAll(String groupCode);

    void deleteByCode(String code);
}
